﻿using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
using Telerik.Charting;
using Telerik.UI.Xaml.Controls.Chart;

namespace CityDashboard.Views
{
    public sealed partial class PieChart : UserControl
    {
        public PieChart()
        {
            this.InitializeComponent();            
        }

        private void Chart_Loaded(object sender, RoutedEventArgs e)
        {
            var pie = new PieSeries();
            
            
        }

        private void PieSeries_DataBindingComplete(object sender, EventArgs e)
        {
            foreach (var pieDataPoint in Chart.Series[0].DataPoints)
            {
                pieDataPoint.OffsetFromCenter = 0.1;
            }
        }

       
       


    }
}
